##################################################################
# File : /lua/keymap/defaultkeymap.lua
# Description : Default keymap definitions
# Author : GPG
##################################################################

--[[
Maps specific key combinations to console commands
Key combos should be seperated by -'s
See keyNames.lua for key names! Key names for modifiers are as follows and must be followed by a dash ('-')
Shift = 0x10
Ctrl = 0x11
Alt = 0x12
--]]

defaultKeyMap = {
    ['Esc']                 = 'escape',
    ['Pause']               = 'pause',
    ['Ctrl-F']              = 'cap_frame',
    # ['Backslash']           = 'mouse_help',

#    ['F1']                  = 'toggle_key_bindings',
#    ['F2']                  = 'toggle_score_screen',
#    ['F3']                  = 'quick_save',
#    ['F5']                  = 'toggle_team_color',
    ['P']                  = 'ping_alert',
#    ['p']                  = 'ping_move',
#    ['8']                  = 'ping_attack',
#    ['9']                  = 'ping_marker',
#    ['F10']                 = 'toggle_main_menu',
#    ['F11']                 = 'toggle_disconnect_screen',
    ['F10']                 = 'options_menu',
    ['F12']                 = 'toggle_team_color',

    ['1']                   = 'use_ability_1_1',
    ['2']                   = 'use_ability_2_1',
    ['3']                   = 'use_ability_3_1',
    ['4']                   = 'use_ability_4_1',

    ['T']                   = 'track_unit',
    ['Tab']                 = 'toggle_score',
    ['Space']               = 'double_tap_cam_reset',

    ['W']                   = 'pan_up',
    ['A']                   = 'pan_left',
    ['S']                   = 'pan_down',
    ['D']                   = 'pan_right',

    ['Q']                   = 'rotate_left',
    ['E']                   = 'rotate_right',

    ['Ctrl-K']              = 'suicide',

    ['NumMinus']            = 'decrease_game_speed',
    ['NumPlus']             = 'increase_game_speed',
    ['NumStar']             = 'reset_game_speed',

    ['Pageup']              = 'chat_page_up',
    ['Pagedown']            = 'chat_page_down',
    ['Shift-Pageup']        = 'chat_line_up',
    ['Shift-Pagedown']      = 'chat_line_down',

    ['NumSlash']            = 'show_frametime',

    ['C']                   = 'show_player_stats',
    ['K']                   = 'show_skills',

    ['F1']                  = 'use_inventory_1',
    ['F2']                  = 'use_inventory_2',
    ['F3']                  = 'use_inventory_3',
    ['F4']                  = 'use_achievement',
    ['Tilde']               = 'cycle_lifebars',

}

debugKeyMap = {
    ['Ctrl-L']              = 'debug_output_logs',
    ['Ctrl-A']              = 'debug_achievements',
    ['Ctrl-Alt-P']          = 'debug_navpath',
    ['Alt-F2']              = 'debug_create_unit',
    ['Alt-T']               = 'debug_teleport',
    ['Alt-A']               = 'debug_run_opponent_AI',
    ['Ctrl-Alt-B']          = 'debug_blingbling',
    ['Alt-Delete']          = 'debug_destroy_units',

    ['Ctrl-Alt-Comma']      = 'debug_graphics_fidelity_0',
    ['Ctrl-Alt-Period']     = 'debug_graphics_fidelity_1',
    ['Ctrl-Alt-Slash']      = 'debug_graphics_fidelity_2',
    ['Ctrl-Alt-M']          = 'debug_toggle_ren_environment',

    ['Alt-F3']              = 'debug_scenario_method_f3',
    ['Shift-F3']            = 'debug_scenario_method_shift_f3',
    ['Ctrl-F3']             = 'debug_scenario_method_ctrl_f3',
    ['Shift-F4']            = 'debug_scenario_method_shift_f4',
    ['Ctrl-F4']             = 'debug_scenario_method_ctrl_f4',
    ['Ctrl-Alt-F4']         = 'debug_scenario_method_ctrl_alt_f3',
    ['Ctrl-Shift-F4']       = 'debug_scenario_method_f4',
    ['Ctrl-Shift-F5']       = 'debug_scenario_method_f5',
    ['Shift-F5']            = 'debug_scenario_method_shift_f5',
    ['Ctrl-F5']             = 'debug_scenario_method_ctrl_f5',
    ['Ctrl-Alt-F5']         = 'debug_scenario_method_ctrl_alt_f5',

    ['Shift-F6']            = 'debug_create_entity',
    ['Shift-F7']            = 'debug_show_stats',
    ['Shift-F8']            = 'debug_show_army_stats',
    ['F9']                  = 'debug_toggle_log_window',
    ['Alt-F9']              = 'debug_open_lua_debugger',
    ['Alt-F11']             = 'debug_show_frame_stats',
    ['Ctrl-Alt-W']          = 'debug_render_wireframe',
    ['Ctrl-Shift-W']        = 'debug_weapons',
    ['Ctrl-Alt-O']          = 'debug_grid',
    ['Alt-Q']               = 'debug_show_focus_ui_control',
    ['Alt-W']               = 'debug_dump_focus_ui_control',
    ['Alt-D']               = 'debug_dump_ui_controls',
    ['Alt-V']               = 'debug_skeletons',
    ['Alt-B']               = 'debug_bones',

    ['Ctrl-Shift-X']        = 'debug_redo_console_command',
    ['Ctrl-Shift-C']        = 'debug_copy_units',
    ['Ctrl-Shift-V']        = 'debug_paste_units',
    ['Alt-C-V']             = 'debug_cam_zoom_far',
    ['Alt-C']               = 'debug_cam_zoom_near',

    ['Alt-N']               = 'debug_nodamage',
    ['Ctrl-Alt-E']          = 'debug_show_emitter_window',
    ['Ctrl-Alt-R']          = 'debug_reload_effect_templates',
    ['Ctrl-Alt-Shift-R']    = 'debug_reload_effect_utilities',
    ['Ctrl-Alt-Z']          = 'debug_sally_shears',
    ['Ctrl-Shift-Alt-C']    = 'debug_collision',
    ['Ctrl-Slash']          = 'debug_pause_single_step',
    ['Ctrl-F10']            = 'debug_restart_session',
#    ['Slash']               = 'debug_toggle_flavah',

    ['Alt-F']               = 'set_level_25',
    ['Alt-G']               = 'give_all_skills',

    ['Ctrl-U']              = 'debug_ui',
    ['Ctrl-Shift-Alt-D']    = 'debug_damage',
    ['Ctrl-Shift-U']        = 'debug_dump_frames',

    ['Ctrl-Shift-E']        = 'debug_erics_ring',

    ['Ctrl-NumMinus']       = 'debug_corpse_delay_decrease',
    ['Ctrl-NumPlus']        = 'debug_corpse_delay_increase',
}